import http from '@/util/request'
import { downLoactionFile } from '@/util'
export const fetchFile = (url, name) => {
  return http({
    url: `${window.location.origin}/dist${url}`,
    method: 'get',
    responseType: 'blob',
    timeout: 1500000
  }).then((data) => {
    downLoactionFile(data, name)
  })
}